<template>
  <div class="portfolio-detail-page">
    <!-- Background Elements -->
    <div class="bg-rectangle-4"></div>
    <div class="bg-rectangle-49"></div>
    
    <!-- Main Content -->
    <div class="main-content">
      <!-- Project Title -->
      <h1 class="project-title">智慧校园数字化平台设计</h1>
      
      <!-- Service Tags -->
      <div class="service-tags">
        <div class="tag ui-design">UI 设计</div>
        <div class="tag interaction-design">交互设计</div>
        <div class="tag system-design">系统设计</div>
      </div>

      <!-- Project Image -->
      <div class="project-image">
        <img src="@/assets/images/demo.webp" alt="智慧校园数字化平台设计" class="project-img" />
      </div>

      <!-- Content Sections -->
      <div class="content-sections">
        <!-- Project Info Section -->
        <div class="section project-info">
          <div class="section-card">
            <h3 class="section-title">项目信息</h3>
            <div class="info-grid">
              <div class="info-item">
                <span class="info-label">客户</span>
                <span class="info-value">某知名高校信息化中心</span>
              </div>
              <div class="info-item">
                <span class="info-label">服务类型</span>
                <div class="service-type-tags">
                  <span class="service-tag system">系统设计</span>
                  <span class="service-tag ui">UI设计</span>
                </div>
              </div>
              <div class="info-item">
                <span class="info-label">创作时间</span>
                <span class="info-value">2024年2月</span>
              </div>
            </div>
          </div>
        </div>

        <!-- Requirements Background Section -->
        <div class="section requirements">
          <div class="section-card">
            <h3 class="section-title">需求背景</h3>
            <p class="section-content">
              某知名高校为提升校园管理效率和学生体验，计划开发一套智慧校园数字化平台。平台需要整合教务系统、一卡通、图书馆等多个子系统，实现数据互通和统一管理。项目要求具备现代化的设计风格，清晰的信息层级，以及流畅的用户体验。
            </p>
          </div>
        </div>

        <!-- Project Description Section -->
        <div class="section description">
          <div class="section-card">
            <h3 class="section-title">作品描述</h3>
            <p class="section-content">
              采用深色主题设计，减少用户视觉疲劳。运用模块化的布局结构，将复杂的功能系统化呈现。通过数据可视化展示校园运营状况，帮助管理者快速决策。在交互设计上，注重操作路径的简化，提供智能推荐和快捷入口。
            </p>
          </div>
        </div>

        <!-- Achievements Section -->
        <div class="section achievements">
          <div class="section-card">
            <h3 class="section-title">成果亮点</h3>
            <div class="achievements-grid">
              <div class="achievement-item">
                <div class="achievement-icon"></div>
                <span class="achievement-text">智能数据分析系统</span>
              </div>
              <div class="achievement-item">
                <div class="achievement-icon"></div>
                <span class="achievement-text">自适应界面设计</span>
              </div>
              <div class="achievement-item">
                <div class="achievement-icon"></div>
                <span class="achievement-text">多终端同步体验</span>
              </div>
              <div class="achievement-item">
                <div class="achievement-icon"></div>
                <span class="achievement-text">个性化定制功能</span>
              </div>
            </div>
          </div>
        </div>

        <!-- Project Data Section -->
        <div class="section project-data">
          <div class="section-card">
            <h3 class="section-title">项目数据</h3>
            <div class="data-grid">
              <div class="data-item">
                <span class="data-label">设计周期</span>
                <span class="data-value">90 天</span>
              </div>
              <div class="data-item">
                <span class="data-label">参与人数</span>
                <span class="data-value">2人</span>
              </div>
              <div class="data-item">
                <span class="data-label">页面数量</span>
                <span class="data-value">56 个</span>
              </div>
              <div class="data-item">
                <span class="data-label">作品类型</span>
                <span class="data-value">APP</span>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- Customer Feedback Section -->
      <div class="feedback-section">
        <h2 class="feedback-title">客户反馈</h2>
        <p class="feedback-subtitle">Customer feedback</p>
        
        <div class="feedback-card">
          <div class="feedback-content">
            <div class="stars">
              <div class="star"></div>
              <div class="star"></div>
              <div class="star"></div>
              <div class="star"></div>
              <div class="star"></div>
            </div>
            <p class="feedback-text">
              悦而启思的设计团队展现了极高的专业水准，他们不仅理解我们的需求，更提供了超出预期的解决方案。整个平台的用户体验非常出色，获得了师生的一致好评。
            </p>
            <div class="customer-info">
              <div class="customer-avatar"></div>
              <div class="customer-details">
                <div class="customer-name">张教授</div>
                <div class="customer-title">邮电大学</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'

onMounted(() => {
  // 页面加载完成后的逻辑
})
</script>

<style scoped>
.portfolio-detail-page {
  position: relative;
  min-height: 100vh;
  background: #0A0A0A;
  color: #FFFFFF;
  overflow-x: hidden;
}

/* Background Elements */
.bg-rectangle-4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0A0A0A;
  z-index: -2;
}

.bg-rectangle-49 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

/* Header Navigation */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
}

.nav-item {
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-item:hover {
  color: #007AFF;
}

.nav-item.active {
  font-weight: 600;
  color: #007AFF;
}

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
}

.nav-line {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: #333333;
}

/* Main Content */
.main-content {
  padding-top: 120px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Project Title */
.project-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 30px;
  text-align: center;
}

/* Service Tags */
.service-tags {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.tag {
  padding: 12px 24px;
  border-radius: 70px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Project Image */
.project-image {
  width: 100%;
  height: 400px;
  margin-bottom: 80px;
  border-radius: 70px;
  background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  
  .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 70px;
    transition: transform 0.5s ease;
  }
  
  &:hover {
    transform: translateY(-5px);
    
    .project-img {
      transform: scale(1.05);
    }
  }
}

.image-placeholder {
  width: 90%;
  height: 90%;
  border-radius: 22px;
  background: #333333;
}

/* Content Sections */
.content-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.section {
  width: 100%;
}

.section-card {
  background: #1A1A1A;
  border-radius: 22px;
  padding: 40px;
  height: 100%;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 30px;
}

.section-content {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* Project Info */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.info-value {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
}

.service-type-tags {
  display: flex;
  gap: 12px;
}

.service-tag {
  padding: 8px 16px;
  border-radius: 70px;
  font-size: 12px;
  font-weight: 500;
}

.service-tag.system {
  background: rgba(0, 122, 255, 0.2);
  color: #007AFF;
}

.service-tag.ui {
  background: rgba(52, 199, 89, 0.2);
  color: #34C759;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.achievement-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #007AFF;
}

.achievement-text {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
}

/* Project Data */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.data-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.data-value {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Customer Feedback */
.feedback-section {
  text-align: center;
  margin-bottom: 80px;
}

.feedback-title {
  font-size: 36px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.feedback-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 60px;
}

.feedback-card {
  max-width: 800px;
  margin: 0 auto;
  background: #1A1A1A;
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #007AFF 0%, #34C759 100%);
  border-radius: 20px;
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.feedback-content {
  position: relative;
  z-index: 1;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.star {
  width: 20px;
  height: 20px;
  background: #FFD700;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.feedback-text {
  font-size: 18px;
  line-height: 1.6;
  color: #FFFFFF;
  margin-bottom: 32px;
  text-align: left;
}

.customer-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.customer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007AFF 0%, #34C759 100%);
}

.customer-details {
  text-align: left;
}

.customer-name {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.customer-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    gap: 30px;
    padding: 0 20px;
  }
  
  .nav-item, .nav-brand {
    font-size: 14px;
  }
  
  .project-title {
    font-size: 32px;
  }
  
  .content-sections {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .achievements-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }
  
  .service-tags {
    flex-wrap: wrap;
  }
}
</style>